@forward 'element-plus/theme-chalk/src/common/var.scss'with ($colors: ('white': #ffffff,
    'black': #000000,
    // 'primary': (
    //   // 'base': #409eff,
    //   'base': #333,
    // ),
    'success': ('base': #67c23a,
    ),
    'warning': ('base': #e6a23c,
    ),
    'danger': ('base': #f56c6c,
    ),
    'error': ('base': #f56c6c,
    ),
    'info': ('base': #909399,
    ),
  ));
@use 'element-plus/theme-chalk/src/index.scss'as *;

.el-button {
  border-radius: 0;
}

.el-menu--horizontal {
  border-bottom: none;
}

.el-dialog__header {
  background: var(--el-bg-color-page);
  margin-right: 0;
  text-align: left;
  padding: 16px 16px 10px 16px;
}

.el-dialog__footer {
  margin-right: 0;
  background: var(--el-bg-color-page);
  padding: 10px 16px 16px 16px;
  text-align: right;
}

.el-dialog__body {
  text-align: left;
  padding: 10px 16px;
}

.el-drawer__header {
  margin-bottom: 0;
  padding-bottom: var(--el-drawer-padding-primary);
  background: var(--el-bg-color-page);
  text-align: left;
}

.el-drawer__footer {
  background: var(--el-bg-color-page);
  padding-top: var(--el-drawer-padding-primary);
}

html.dark {
  .el-drawer__header {
    margin-bottom: 0;
    padding-bottom: var(--el-drawer-padding-primary);
    background: var(--el-bg-color-page);
  }

  .el-drawer__footer {
    background: var(--el-bg-color-page);
    padding-top: var(--el-drawer-padding-primary);
  }

  .el-dialog__footer,
  .el-dialog__header {
    background: var(--el-bg-color-page);
    margin-right: 0;
  }
}

.el-table .el-dropdown {
  margin-top: 4px;
  margin-left: 8px;

  .el-button:focus-visible {
    outline: none;
  }
}

// 去除 hover 边框
.dropdown-wrap:focus-visible,
.el-dropdown:focus-visible,
.el-tooltip__trigger:focus-visible {
  outline: none !important;
}

.el-sub-menu__title {
  user-select: none;
  font-weight: bold;
}

.el-menu-item {
  user-select: none;
}

// 折叠面板
.el-collapse-item__content{
  padding: 10px;
}